Skip to contentSkip to conversation

tap-windows6 and AppVeyor

Openvpn-devel Simon Rozman 4 participants 12 messages Jun 14, 2018 – Jul 3, 2018 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi!

Given all the recent updates to tap-windows6 building process, the AppVeyor integration needs an update too.

Now the Microsoft EWDK is used to build the driver, I wasn't able to find any such build environment on AppVeyor.

If the EWDK licence allows us, we could put EWDK online and have the AppVeyor download and unpack it before build. Although portable, the EWDK is 5GB making this option far from ideal.

Or, we could politely ask AppVeyor to introduce an EWDK building environment. :)

Does anybody have any idea how to address this challenge?

Best regards,
Simon

#1 lore raw

As I read the license (IANAL), consumers of the EWDK can copy, 'install', and run it pretty much anywhere in support of building software for Windows, just not as a public download.

A 5GB download is prohibitive, but do note that 'unpacking' is as simple as mounting the ISO file.

-----Original Message-----
From: Simon Rozman <[email protected]...>
Sent: Thursday, June 14, 2018 10:35 AM
To: [email protected]...; Jon Kunkee <[email protected]...>
Cc: Samuli Seppänen ([email protected]...) <[email protected]...>; openvpn-devel ([email protected]) <[email protected]>
Subject: tap-windows6 and AppVeyor

Hi!

Given all the recent updates to tap-windows6 building process, the AppVeyor integration needs an update too.

Now the Microsoft EWDK is used to build the driver, I wasn't able to find any such build environment on AppVeyor.

If the EWDK licence allows us, we could put EWDK online and have the AppVeyor download and unpack it before build. Although portable, the EWDK is 5GB making this option far from ideal.

Or, we could politely ask AppVeyor to introduce an EWDK building environment. :)

Does anybody have any idea how to address this challenge?

Best regards,
Simon

#2 lore raw

Perhaps we could make the ISO available as a network share?

Il 14/06/2018 23:43, Jon Kunkee ha scritto:

Quoted 34 lines

As I read the license (IANAL), consumers of the EWDK can copy, 'install', and run it pretty much anywhere in support of building software for Windows, just not as a public download.

A 5GB download is prohibitive, but do note that 'unpacking' is as simple as mounting the ISO file.

-----Original Message-----
From: Simon Rozman <[email protected]...>
Sent: Thursday, June 14, 2018 10:35 AM
To: [email protected]...; Jon Kunkee <[email protected]...>
Cc: Samuli Seppänen ([email protected]...) <[email protected]...>; openvpn-devel ([email protected]) <[email protected]>
Subject: tap-windows6 and AppVeyor

Hi!

Given all the recent updates to tap-windows6 building process, the AppVeyor integration needs an update too.

Now the Microsoft EWDK is used to build the driver, I wasn't able to find any such build environment on AppVeyor.

If the EWDK licence allows us, we could put EWDK online and have the AppVeyor download and unpack it before build. Although portable, the EWDK is 5GB making this option far from ideal.

Or, we could politely ask AppVeyor to introduce an EWDK building environment. :)

Does anybody have any idea how to address this challenge?

Best regards,
Simon

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#3 lore raw

hi,

I have some very amazing expirience with app veyor when I was playing with mingw builds.
there was an issue related to mingw and I saw it between builds (mingw upgraded), so I first decided "could it be app veyor ?!"

people from app veyor were very helpful in troubleshooting that.

so, I guess we can try to open an issue in their tracker this time as well.

as for network share - due to "wanna cry" and similar malwares, network shares are blocked over internet usually.
another option might be to try build services at https://visualstudio.com

пт, 15 июн. 2018 г. в 11:28, Samuli Seppänen <[email protected]...>:

Quoted 53 lines

Perhaps we could make the ISO available as a network share?

Il 14/06/2018 23:43, Jon Kunkee ha scritto:

Quoted 1 line

As I read the license (IANAL), consumers of the EWDK can copy,

'install', and run

Quoted 1 line

it pretty much anywhere in support of building software for Windows,

just not

Quoted 3 lines

as a public download.

A 5GB download is prohibitive, but do note that 'unpacking' is as simple

as

Quoted 7 lines

mounting the ISO file.

-----Original Message-----
From: Simon Rozman <[email protected]...>
Sent: Thursday, June 14, 2018 10:35 AM
To: [email protected]...; Jon Kunkee <[email protected]...>
Cc: Samuli Seppänen ([email protected]...) <[email protected]...>;

openvpn-devel ([email protected]) < [email protected]>

Quoted 5 lines

Subject: tap-windows6 and AppVeyor

Hi!

Given all the recent updates to tap-windows6 building process, the

AppVeyor

Quoted 7 lines

integration needs an update too.

Now the Microsoft EWDK is used to build the driver, I wasn't able to find any such build environment on AppVeyor.

If the EWDK licence allows us, we could put EWDK online and have the AppVeyor download and unpack it before build. Although portable, the

EWDK is

Quoted 10 lines

5GB making this option far from ideal.

Or, we could politely ask AppVeyor to introduce an EWDK building environment. :)

Does anybody have any idea how to address this challenge?

Best regards,
Simon

--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

#4 lore raw

Hi,

I like the idea of asking AppVeyor if they could include the EWDK in one of their images. It is a standalone tool, so Visual Studio is not needed.

Sadly I don't see a Chocolatey package for the EWDK. That would have been convenient.

The AppVeyor docs[1] say that the Visual Studio 2017 image in AppVeyor already has the Windows Driver Kit (WDK) installed. Buildtap.py would need a couple of changes to consume the WDK instead of the EWDK, but it is an option.

Thanks,
Jon

[1] https://www.appveyor.com/docs/build-environment/

From: Илья Шипицин <[email protected]...>
Sent: Friday, June 15, 2018 12:14 AM
To: Samuli Seppänen <[email protected]...>
Cc: Jon Kunkee <[email protected]...>; Simon Rozman <[email protected]...>; openvpn-devel <[email protected]>
Subject: Re: tap-windows6 and AppVeyor

hi,

I have some very amazing expirience with app veyor when I was playing with mingw builds.
there was an issue related to mingw and I saw it between builds (mingw upgraded), so I first decided "could it be app veyor ?!"

people from app veyor were very helpful in troubleshooting that.

so, I guess we can try to open an issue in their tracker this time as well.

as for network share - due to "wanna cry" and similar malwares, network shares are blocked over internet usually.
another option might be to try build services at https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvisualstudio.com&data=02%7C01%7Cjkunkee%40microsoft.com%7C9ca0701aa3a948090f8208d5d28fa5b7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636646436767357213&sdata=virhpLwaa%2Fbdff2JpVzdNYGP5yLckjpUIp4I%2BQeuH4I%3D&reserved=0

пт, 15 июн. 2018 г. в 11:28, Samuli Seppänen <mailto:[email protected]...>:
Perhaps we could make the ISO available as a network share?

Il 14/06/2018 23:43, Jon Kunkee ha scritto:

Quoted 34 lines

As I read the license (IANAL), consumers of the EWDK can copy, 'install', and run it pretty much anywhere in support of building software for Windows, just not as a public download.

A 5GB download is prohibitive, but do note that 'unpacking' is as simple as mounting the ISO file.

-----Original Message-----
From: Simon Rozman <mailto:[email protected]...>
Sent: Thursday, June 14, 2018 10:35 AM
To: mailto:[email protected]...; Jon Kunkee <mailto:[email protected]...>
Cc: Samuli Seppänen (mailto:[email protected]...) <mailto:[email protected]...>; openvpn-devel (mailto:[email protected]) <mailto:[email protected]>
Subject: tap-windows6 and AppVeyor

Hi!

Given all the recent updates to tap-windows6 building process, the AppVeyor integration needs an update too.

Now the Microsoft EWDK is used to build the driver, I wasn't able to find any such build environment on AppVeyor.

If the EWDK licence allows us, we could put EWDK online and have the AppVeyor download and unpack it before build. Although portable, the EWDK is 5GB making this option far from ideal.

Or, we could politely ask AppVeyor to introduce an EWDK building environment. :)

Does anybody have any idea how to address this challenge?

Best regards,
Simon

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#5 lore raw

Hi,

I was dismissed by the AppVeyor about an image preinstalled with EWDK request. They explained I can use their build cache to maintain a local EWDK copy.
Unfortunately, the build cache is account-specific, meaning every user trying to run its own fork (including OpenVPN for upstream) will require AppVeyor Premium plan. EWDK won't fit into 1GB build cache limit with Free/Basic plan.

So, we still have Jon's alternative proposal to support EWDK *and* VS2015+WDK building in buildtap.py. The downside to this approach is, we are using slightly different build environment for CI.

Best regards,
Simon

Quoted 26 lines

-----Original Message-----
From: Jon Kunkee <[email protected]...>
Sent: Friday, June 15, 2018 7:58 PM
To: Илья Шипицин <[email protected]...>; Samuli Seppänen <[email protected]...>
Cc: Simon Rozman <[email protected]...>; openvpn-devel <openvpn- [email protected]>
Subject: RE: tap-windows6 and AppVeyor

Hi,

I like the idea of asking AppVeyor if they could include the EWDK in one of their images. It is a standalone tool, so Visual Studio is not needed.

Sadly I don't see a Chocolatey package for the EWDK. That would have been convenient.

The AppVeyor docs[1] say that the Visual Studio 2017 image in AppVeyor already has the Windows Driver Kit (WDK) installed. Buildtap.py would need a couple of changes to consume the WDK instead of the EWDK, but it is an option.

Thanks,
Jon

[1] https://www.appveyor.com/docs/build-environment/

#6 lore raw

I chose the EWDK thinking it would actually be easier for CI because it was so similar to the Win7 DDK, but from what you are saying I was wrong (at least for AppVeyor). Are you interested converting buildtap.py to use VS2017+WDK instead of the EWDK? I'm happy to do it, but I won't get to it until next week at the earliest...

-----Original Message-----
From: Simon Rozman <[email protected]...>
Sent: Tuesday, July 3, 2018 6:45 AM
To: Jon Kunkee <[email protected]...>; Илья Шипицин <[email protected]...>; Samuli Seppänen <[email protected]...>
Cc: openvpn-devel <[email protected]>
Subject: RE: tap-windows6 and AppVeyor

Hi,

I was dismissed by the AppVeyor about an image preinstalled with EWDK request. They explained I can use their build cache to maintain a local EWDK copy.
Unfortunately, the build cache is account-specific, meaning every user trying to run its own fork (including OpenVPN for upstream) will require AppVeyor Premium plan. EWDK won't fit into 1GB build cache limit with Free/Basic plan.

So, we still have Jon's alternative proposal to support EWDK *and* VS2015+WDK building in buildtap.py. The downside to this approach is, we are using slightly different build environment for CI.

Best regards,
Simon

Quoted 26 lines

-----Original Message-----
From: Jon Kunkee <[email protected]...>
Sent: Friday, June 15, 2018 7:58 PM
To: Илья Шипицин <[email protected]...>; Samuli Seppänen <[email protected]...>
Cc: Simon Rozman <[email protected]...>; openvpn-devel <openvpn- [email protected]>
Subject: RE: tap-windows6 and AppVeyor

Hi,

I like the idea of asking AppVeyor if they could include the EWDK in one of their images. It is a standalone tool, so Visual Studio is not needed.

Sadly I don't see a Chocolatey package for the EWDK. That would have been convenient.

The AppVeyor docs[1] say that the Visual Studio 2017 image in AppVeyor already has the Windows Driver Kit (WDK) installed. Buildtap.py would need a couple of changes to consume the WDK instead of the EWDK, but it is an option.

Thanks,
Jon

[1] https://www.appveyor.com/docs/build-environment/

#7 lore raw

Hi,

Quoted 6 lines

I chose the EWDK thinking it would actually be easier for CI because it was so
similar to the Win7 DDK, but from what you are saying I was wrong (at least for AppVeyor). Are you interested converting buildtap.py to use VS2017+WDK instead of the EWDK? I'm happy to do it, but I won't get to it until next week at the earliest...

EWDK is a nice step forward in simplifying the build environment. Unfortunately, a step too forward in AppVeyor's case. ;)

The decision to keep EWDK, revert back to VS2017+WDK, or support both is probably best to be made by other team members working on TAP driver most.

Best regards,
Simon

#8 lore raw

Agreed. I leapt a bit too far to land at my conclusion. :| I gladly defer to those who have to live with this decision in the long run.

(Unfortunately, it seems that MS' VSTS doesn't have any WDK or EWDK CI solutions at all...oh well.)

-----Original Message-----
From: Simon Rozman <[email protected]...>
Sent: Tuesday, July 3, 2018 12:40 PM
To: Jon Kunkee <[email protected]...>; Илья Шипицин <[email protected]...>; Samuli Seppänen <[email protected]...>
Cc: openvpn-devel <[email protected]>
Subject: RE: tap-windows6 and AppVeyor

Hi,

Quoted 6 lines

I chose the EWDK thinking it would actually be easier for CI because it was so
similar to the Win7 DDK, but from what you are saying I was wrong (at least for AppVeyor). Are you interested converting buildtap.py to use VS2017+WDK instead of the EWDK? I'm happy to do it, but I won't get to it until next week at the earliest...

EWDK is a nice step forward in simplifying the build environment. Unfortunately, a step too forward in AppVeyor's case. ;)

The decision to keep EWDK, revert back to VS2017+WDK, or support both is probably best to be made by other team members working on TAP driver most.

Best regards,
Simon

#9 lore raw
In reply to Илья Шипицин

not very hard to build on https://visualstudio.com

(still have no idea how to share build logs on web)

[image: vsbs.png]
​

пт, 15 июн. 2018 г. в 12:14, Илья Шипицин <[email protected]...>:

Quoted 74 lines

hi,

I have some very amazing expirience with app veyor when I was playing with mingw builds.
there was an issue related to mingw and I saw it between builds (mingw upgraded), so I first decided "could it be app veyor ?!"

people from app veyor were very helpful in troubleshooting that.

so, I guess we can try to open an issue in their tracker this time as well.

as for network share - due to "wanna cry" and similar malwares, network shares are blocked over internet usually.
another option might be to try build services at https://visualstudio.com

пт, 15 июн. 2018 г. в 11:28, Samuli Seppänen <[email protected]...>:

Quoted 54 lines

Perhaps we could make the ISO available as a network share?

Il 14/06/2018 23:43, Jon Kunkee ha scritto:

Quoted 1 line

As I read the license (IANAL), consumers of the EWDK can copy,

'install', and run

Quoted 1 line

it pretty much anywhere in support of building software for Windows,

just not

Quoted 3 lines

as a public download.

A 5GB download is prohibitive, but do note that 'unpacking' is as

simple as

Quoted 7 lines

mounting the ISO file.

-----Original Message-----
From: Simon Rozman <[email protected]...>
Sent: Thursday, June 14, 2018 10:35 AM
To: [email protected]...; Jon Kunkee <[email protected]...>
Cc: Samuli Seppänen ([email protected]...) <[email protected]...>;

openvpn-devel ([email protected]) < [email protected]>

Quoted 5 lines

Subject: tap-windows6 and AppVeyor

Hi!

Given all the recent updates to tap-windows6 building process, the

AppVeyor

Quoted 3 lines

integration needs an update too.

Now the Microsoft EWDK is used to build the driver, I wasn't able to

find

Quoted 4 lines

any such build environment on AppVeyor.

If the EWDK licence allows us, we could put EWDK online and have the AppVeyor download and unpack it before build. Although portable, the

EWDK is

Quoted 10 lines

5GB making this option far from ideal.

Or, we could politely ask AppVeyor to introduce an EWDK building environment. :)

Does anybody have any idea how to address this challenge?

Best regards,
Simon

--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

#10 lore raw

Please, mind "The system cannot find the path specified." in the output log. This basically says: "EWDK not found - not compiling anything". And the artefact tap6.tar.gz ends up pretty much empty.

We have the same result on AppVeyor already.

buildtap.py MUST be upgraded to check error code of each command it invokes. Otherwise, you overlook failures of some steps.

Best regards,

Simon

From: Илья Шипицин <[email protected]...>
Sent: Saturday, June 16, 2018 11:50 PM
To: Samuli Seppänen <[email protected]...>
Cc: [email protected]...; Simon Rozman <[email protected]...>; openvpn-devel <[email protected]>
Subject: Re: tap-windows6 and AppVeyor

not very hard to build on https://visualstudio.com

(still have no idea how to share build logs on web)

​

A message that is not in the archive (sent off-list or not yet received): [email protected]...

#12 lore raw

I have created a commit at https://github.com/rozmansi/tap-windows6/commit/edefe4fbcaa51b756cc069d53c81c8d36de71d08 to throw on command errors. But I'm struggling with Git and GitHub to make a PR for this commit alone.

Best regards,

Simon

From: Илья Шипицин <[email protected]...>
Sent: Sunday, June 17, 2018 12:58 PM
To: Simon Rozman <[email protected]...>
Cc: Samuli Seppänen <[email protected]...>; [email protected]...; openvpn-devel <[email protected]>
Subject: Re: tap-windows6 and AppVeyor

вс, 17 июн. 2018 г. в 14:49, Simon Rozman <[email protected]... <mailto:[email protected]...> >:

Please, mind "The system cannot find the path specified." in the output log. This basically says: "EWDK not found - not compiling anything". And the artefact tap6.tar.gz ends up pretty much empty.

We have the same result on AppVeyor already.

sort of. VSTS comes with python 3.X

as of the rest - you are right "The system cannot find ..." --> no errors --> no "*.sys" files

same as App Veyor

I agree that build script should fail on such builds

buildtap.py MUST be upgraded to check error code of each command it invokes. Otherwise, you overlook failures of some steps.

Best regards,

Simon

From: Илья Шипицин <[email protected]... <mailto:[email protected]...> >
Sent: Saturday, June 16, 2018 11:50 PM
To: Samuli Seppänen <[email protected]... <mailto:[email protected]...> >
Cc: [email protected]... <mailto:[email protected]...> ; Simon Rozman <[email protected]... <mailto:[email protected]...> >; openvpn-devel <[email protected] <mailto:[email protected]> >
Subject: Re: tap-windows6 and AppVeyor

not very hard to build on https://visualstudio.com

(still have no idea how to share build logs on web)

​